package chapters15_bingfa.chapters15_2;

/**
 * Created by xinxuchu on 2020/1/26.
 */
public class StaticCounter {

    private static int count = 0;
    public static synchronized void incr(){
        count++;
    }

    public static synchronized int getCount(){
        return count;
    }
}
